package com.wdf.dota;

import android.app.Activity;
import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class EquimentViewActivity   extends Activity{
	
	Button returnCommentBtn;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.equimentview);
		
		returnCommentBtn =  (Button) findViewById(R.id.return_comment);
		returnCommentBtn.setOnClickListener(returnCommentButtonListener);

		try {
		Bundle bundle = this.getIntent().getExtras();
		String equipment =	bundle.getString("equipment");
		String equipmentDes	=bundle.getString("equipmentDes");
			TextView equipmentDesText= (TextView) findViewById(R.id.equipmentview);
			equipmentDesText.setText(Html.fromHtml(equipmentDes));
		} catch (Exception e) {
			
		}
	}
	
	OnClickListener returnCommentButtonListener = new OnClickListener() {
		@Override
		public void onClick(View v) {
			EquimentViewActivity.this.finish();
		}
	};
	
	
}
